<template>
    <h1>{{ "parent" }}</h1>
    <p>Count: {{ count }}</p>
    <child @changeCount="changeCount" />
</template>

<script setup lang="ts">
import { ref } from "vue";
import child from "./child.vue";

let count = ref(0);

const changeCount = (num: number) => {
    count.value = count.value + num;
};
</script>

<style scoped></style>
